package com.platform.common.web.exception;

import com.platform.common.result.IResultCode;
import lombok.Getter;

/**
 * <p>
 *
 * </p>
 *
 * @author： yuanlai
 * @since 2021-05-24
 */
@Getter
public class BizException extends RuntimeException{

    public IResultCode resultCode;

    public BizException(IResultCode errorCode){
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public BizException(String message){
        super(message);
    }

    public BizException(String message, Throwable cause){
        super(message,cause);
    }

    public BizException(Throwable cause){
        super(cause);
    }
}
